import http from "@/utils/http2.js";

/**
 * 首页库存
 * @param eid
 * @returns {*}
 */
export function homeHouse(eid){
  return http.get("/api/inventory/home/num?eid="+eid,{})
}

/**
 * 首页资金
 * @param eid
 * @returns {Promise<axios.AxiosResponse<*>>}
 */
export function homeMoney(eid){
  return http.get("/api/eid?eid="+eid,{})
}

/**
 * 首页欠款
 * @param eid
 * @returns {Promise<axios.AxiosResponse<*>>}
 */
export function homeDebt(eid){
  return http.get("/api/pru/eid?eid="+eid,{})
}

/**
 * 首页销售
 * @param eid
 * @returns {Promise<axios.AxiosResponse<*>>}
 */
export function homeSale(eid){
  return http.get("/api/num/eid?eid="+eid,{})
}
/**
 * 首页采购
 * @param eid
 * @returns {Promise<axios.AxiosResponse<*>>}
 */
export function homePurchase(eid){
  return http.get("/api/MandZ/eid?eid="+eid,{})
}

/**
 * 首页未审核单数
 * @param eid
 * @returns {Promise<axios.AxiosResponse<*>>}
 */
export function homeAud(eid){
  return http.get("/api/Aud/eid?eid="+eid,{})
}

/**
 * 首页账号信息
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export function getUserInFo(data){
  return http.post("/api/status",data)
}
